package com.jjh.service.impl;

import com.jjh.dao.impl.ShopDaoImpl;
import com.jjh.winterframework.annatation.Component;
import com.jjh.dao.ShopDao;
import com.jjh.service.DishService;
import com.jjh.service.ShopService;
import com.jjh.util.PageBody;
import com.jjh.winterframework.annatation.Autowired;

import java.util.Scanner;
@Component
public class ShopServiceImpl implements ShopService {

    private static Scanner scanner = new Scanner(System.in);

    @Autowired
    private ShopDaoImpl shopDao ;
    /**
     * 调用菜品的服务
     */
    @Autowired
    private DishServiceImpl dishService;

    /**
     * 分页查询商家
     * @param
     * @param
     * @return
     */
    @Override
    public PageBody page(int page, int size) {
        return shopDao.page(page,size);
    }
}
